package com.zhanglifan;

import com.zhanglifan.mapper.BookMapper;
import com.zhanglifan.pojo.Book;
import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext-mapper.xml");

        BookMapper bookMapper = ac.getBean(BookMapper.class);
        Book book = new Book();
        book.setName("dd");
        List<Book> select = bookMapper.select(book);
        
        System.out.println("*** select 的值是: " + select + " ***");
    }
}
